﻿@model SoftHotel.Models.Proveedor

@{
    ViewBag.Title = "Buscar";
}

<h2>Buscar</h2>


@using (Html.BeginForm())
{ 
<h1>
            <strong>Resultado Búsqueda PROVEEDORES</strong></h1>
            <table id="MainContent_Table3" rules="all" style="background-color: #BDBDBD; width: 900px; margin-bottom: 0px;" border="0">
	<tbody><tr>
           <td>            
            <input type="submit" name="button"  value="Regresar" />            
		   </td>
        	</tr>
</tbody></table>

<table id="MainContent_Table4" rules="all" style="border-color: Black; width: 900px; margin-bottom: 0px;" border="1">
	<tbody><tr>
		<td style="font-weight: bold; width: 350px;" align="center">Proveedor</td>
		<td style="font-weight: bold; width: 100px;" align="center">RUC</td>
		<td style="font-weight: bold; width: 70px;" align="center">Estado</td>
		<td style="font-weight: bold; width: 130px;" align="center">Telefono</td>
		<td style="font-weight: bold; width: 130px;" align="center">Representante</td>
	</tr>
    @{
        int i = 0;
        foreach(var prov in (System.Collections.Generic.List<SoftHotel.Models.Proveedor>)ViewBag.ListaProveedores){
            <tr>
		        <td  align="center"><a href = "/Proveedor/Detalle?razon=@prov.razon">@prov.razon</a></td>
		        <td  align="center">@prov.ruc</td>
		        <td  align="center">@prov.estado</td>
                <td  align="center">@prov.fono</td>
                <td  align="center">@prov.representante</td>
	        </tr>
            i++;
        }
    }       
</tbody>
</table>

}   